package com.smartscreen.baseinfomanage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartscreen.baseinfomanage.entity.AcademicYear;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface AcademicYearMapper extends BaseMapper<AcademicYear> {
    
    @Select("SELECT * FROM academic_year ORDER BY created_at DESC")
    List<AcademicYear> selectAllWithOrder();
}